import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.util.Date;

public class date {
    public static void main(String[] args) {
        String str = "123";

        try {
            int a = Integer.parseInt(str)+1;
            System.out.println(a);
        } catch (NumberFormatException e) {

            e.printStackTrace();

        }
    }
}
